package com.jianzh5.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * Created by jianzh5 on 2015/7/9.
 */
public class WebServletContextListener implements ServletContextListener{
    private Starter systemConfigStarter;
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        if(systemConfigStarter == null){
            systemConfigStarter = new SystemConfigStarter();
        }
        systemConfigStarter.updateCache(sce.getServletContext());
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {

    }
}
